a=1
while a<=9:
    b=1
    while a<=9:
        b=1
        while b<=a:
            print(f"{a}*{b} = {a*b}",end=' ')
            b=b+1
        a=a+1
        print()